From 4d45c2669cff32c9d9855ba08f7841975ac585f1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 6 Sep 2020 16:59:56 -0400 Subject: [PATCH] text history: Update state when enabled changes This makes can-undo go FALSE when we disable the text history, as it should. --- gtk/gtktexthistory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtktexthistory.c b/gtk/gtktexthistory.c index fc80b892a5..645d1822eb 100644 --- a/gtk/gtktexthistory.c +++ b/gtk/gtktexthistory.c @@ -1037,6 +1037,8 @@ gtk_text_history_set_enabled (GtkTextHistory *self, clear_action_queue (&self->undo_queue); clear_action_queue (&self->redo_queue); } + + gtk_text_history_update_state (self); } } -- 2.30.2